package pojo;

import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.value.ObservableValue;

public class yuangong {
    private String id;
    private String name;
    private String createtime;
    private String quanxian;
    private String zhiwu;
    private String feiyong;

    public yuangong(String id, String name, String createtime, String quanxian, String zhiwu, String feiyong) {
        this.id = id;
        this.name = name;
        this.createtime = createtime;
        this.quanxian = quanxian;
        this.zhiwu = zhiwu;
        this.feiyong = feiyong;
    }

    public ObservableValue<String> nameProperty() {
        return new SimpleStringProperty(name);
    }

    public ObservableValue<String> idProperty() {
        return new SimpleObjectProperty<>(id);
    }

    public ObservableValue<String> createtimeProperty() {
        return new SimpleObjectProperty<>(createtime);
    }

    public ObservableValue<String> quanxianProperty() {
        return new SimpleStringProperty(quanxian);
    }
    public ObservableValue<String> zhiwuProperty() {
        return new SimpleStringProperty(zhiwu);
    }
    public ObservableValue<String> feiyongProperty() {
        return new SimpleStringProperty(feiyong);
    }
}
